﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.OA
{
    public  interface IDepartmentServices
    {
        public Task<IEnumerable<Department>> GetAllAsync();
        public Task<IEnumerable<Department>> GetAsync(int PageIndex, int PageSize, string Number, string  Name);
        public Task<int> GetCountAsync(string Number,string Name);
        public Task<bool> UpdateAsync(Department model);
        public Task<bool> AddAsync(Department model);
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);
    }
}
